const Sequelize = require("sequelize");
const db = require("../db");

// 创建model
var FileModel = db.define(
    "File",
    {
        id:{
            type: Sequelize.STRING,
            field: "id",
            primaryKey: true,
            autoIncrement: false
        },
        title: {
            type: Sequelize.STRING,
            field: "title"
        },
        type: {
            type: Sequelize.STRING,
            field: "type",
        },
        url: {
            type: Sequelize.STRING,
            field: "url",
        },
        createTime:{
            type: Sequelize.DATE,
            field: "create_time"
        },
        writeName:{
            type: Sequelize.STRING,
            field: "write_name"
        }
       
    },
    { timestamps: false }
);

module.exports = FileModel;
